﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;
using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;

namespace Xugege.AbpExtension.Core.Extension.DataManager
{

    /// <summary>
    /// 数据字典类别定义
    /// </summary>
    [Table("DataDictionaryCategory")]
    public class DataDictionaryCategory : AuditedEntity<int>
    {

        /// <summary>
        /// 租户
        /// </summary>
        [Required]
        public long TenantId { get; set; }
        /// <summary>
        /// 类别代码
        /// </summary>
        [StringLength(1,MinimumLength =1)]
        [Required]
        public string CategoryCode { get; set; }

        /// <summary>
        /// 类别名称
        /// </summary>
        [Required]
        public string Name { get; set; }
        /// <summary>
        /// 分级方案
        /// </summary>
        [Required]
        public string LevelRule { get; set; }
        /// <summary>
        /// 是否启用
        /// </summary>
        [Required]
        public bool Enabled { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        
    }
}
